﻿{% load static %}
{% load menu %}{% generate_menu %}
{% comment %}
	Base template
{% endcomment %}
<!DOCTYPE html>
<html lang="fr">
<head>
{% block head %}	
	{% block meta %}
	<meta charset="utf-8"/>
	{% endblock %}
	
	{% block link %}
	<link rel="stylesheet" href="{% static 'style.css' %}" />
	{% endblock %}
	
	<title>{% block title %}EVE SCM | {% block page-title %}{% endblock %}{% endblock %}</title>
	
	{% block scripts %}
		<script src="{% static 'global.js' %}"></script>
	{% endblock %}
</head>
{% endblock %}


<body>
{% block body %}
  <header id="header-nav">
  {% block header %}
  		<div id="app-names">
    		<h1  id="header-title">{% block header-title %}EVE SCM{% endblock %}</h1>
    		<h2 id="page-title">{% block page-name %}{% endblock %}</h2>
    	</div>
    	<div id="corp-infos">
    		<span id="corp-logo">{% block corp-logo %}LOGO{% endblock %}</span><h2 id="corp-name">PSES</h2>
    	</div>
 	
 		<nav id="navigation-bar">
 		{% block menu %}
 			{% with menu=menus.main %}{% include "menu.html" %}{% endwith %} 
 		
 			{% comment %}
 				{% with menu=menus.user %}{% include "menu.html" %}{% endwith %}
  			{% endcomment %}
  		{% endblock %}
  		</nav>
 {% endblock %}
 </header>
 
<!-- ------------------------------------------------------- -->	
 <div id="wrap">
	{% block wrap %}
		<section id="sidebar">
			{% block sidebar %}
	
			{% endblock %}
		</section>
		<!-- ------------------------------------------------------- -->
	 
  		<section id="content">
  			{% block content %}
  				<header id="title">{% block app_title %}{% endblock %}</header>
  			{% endblock %}
  		</section>
	{% endblock %}
 </div>
 <!-- ------------------------------------------------------- -->
 <footer>
	{% block footer %}
		<span>&copy; 2014, EVE-SCM</span>
	{% endblock %}
 </footer>
{% endblock %}
</body>
</html>